import React, { memo } from 'react'
import { useNavigate } from 'react-router-dom';
import { NavBar } from 'react-vant';
const Index =memo( () => {
    const joop = useNavigate()
    const Toast = () => {
        joop('/home')
    }
    return (
        <div>
            <NavBar
                title="标题"
                leftText="返回"
                rightText="按钮"
                onClickLeft={() => Toast()}
            />
        </div>
    )
})

export default Index
